package cn.emall.cart.service;

import cn.emall.pojo.TbItem;
import cn.emall.utils.EmallResult;

import java.util.List;

public interface CartService {

    EmallResult addCart(long userId, long itemId, int num);
    EmallResult mergeCart(long userId, List<TbItem> itemList);
    List<TbItem> getCartList(long userId);
    EmallResult updateCartNum(long userId, long itemId, int num);
    EmallResult deleteCartItem(long userId, long itemId);
    EmallResult clearCartItem(long userId);
}
